package com.nt.train.config;
import com.nt.train.dto.Apple;
import org.springframework.context.annotation.DeferredImportSelector;
import org.springframework.core.type.AnnotationMetadata;
/**
 * @Import + DeferredImportSelector
 * DeferredImportSelector 它是 ImportSelector 的子接口
 * @author hlf
 * @version 1.0
 * @date 2022/8/3 16:25
 */
public class MyDeferredImportSelector implements DeferredImportSelector {

    @Override
    public String[] selectImports(AnnotationMetadata annotationMetadata) {
        return new String[]{Apple.class.getName()};
    }
}
